﻿<Window x:Class="UI.Dialogs.Dictionaries.DictionaryFormBase"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Title="DictionaryFormBase" Height="500" Width="300"
        WindowStyle="ToolWindow"  >
    <Grid d:LayoutOverrides="Width">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ContentControl x:Name="GridRegion" />
        <GridSplitter HorizontalAlignment="Stretch" Grid.Row="1" MinHeight="10"/>
        <TabControl x:Name="Tabs" Grid.Row="2" TabStripPlacement="Left">
            <TabItem x:Name="EditTab" Header="Edit">
                <DockPanel d:LayoutOverrides="HorizontalMargin">
                    <ContentControl DockPanel.Dock="Bottom">
                        <Button x:Name="EditPub" HorizontalAlignment="Right" Width="75" Content="Save" Click="EditPub_Click" />
                    </ContentControl>
                    <ContentControl x:Name="EditRegion" />
                </DockPanel>
            </TabItem>
            <TabItem x:Name="AddTab" Header="Add">
                <DockPanel d:LayoutOverrides="HorizontalMargin">
                    <ContentControl DockPanel.Dock="Bottom">
                        <Button x:Name="AddPub" HorizontalAlignment="Right" Width="75" Content="Add" Click="AddPub_Click" />
                    </ContentControl>
                    <ContentControl x:Name="AddRegion" />
                </DockPanel>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
